import Vue from 'vue'
import App from './App'
import uView from 'uview-ui'
import MescrollBody from '@/components/mescroll-uni/mescroll-body.vue'
import MescrollUni from '@/components/mescroll-uni/mescroll-uni.vue'
import MescrollEmpty from '@/components/mescroll-uni/components/mescroll-empty.vue'
import store from './store'
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)
Vue.component('mescroll-uni', MescrollEmpty)

Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})

// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)

app.$mount()
